package com.service.impl;

import com.dao.DepDao;
import com.pojo.Dep;
import com.service.IDepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@SuppressWarnings("ALL")
@Service
public class DepServiceImpl implements IDepService {

    @Autowired
   private DepDao depDao;

    @Override
    public int addDep(Dep dep){
        //新增部门
        int n=depDao.insert(dep);
//        int x=1/0;
        return n;
    }


}
